package com.ye.view3dclick;

/**
 * com.ye.view3dclick
 * Created by Administrator on 2017/4/11.
 * Founcation:
 */

public class BackUp {


//    private void doSomething() {
//        findViewById(R.id.root).setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                if (image1.getVisibility() == View.VISIBLE) {
//                    image1.startAnimation(sato0);
//                } else {
//                    image2.startAnimation(sato0);
//                }
//
//            }
//        });
//    }


//    private ScaleAnimation sato0 = new ScaleAnimation(1, 0, 1, 1,
//            Animation.RELATIVE_TO_PARENT, 0.5f, Animation.RELATIVE_TO_PARENT, 0.5f);
//
//    private ScaleAnimation sato1 = new ScaleAnimation(0, 1, 1, 1,
//            Animation.RELATIVE_TO_PARENT, 0.5f, Animation.RELATIVE_TO_PARENT, 0.5f);
//
//    private void start2DAnima() {
//        sato0.setDuration(500);
//        sato1.setDuration(500);
//
//        sato0.setAnimationListener(new Animation.AnimationListener() {
//            @Override
//            public void onAnimationStart(Animation animation) {
//
//            }
//
//            @Override
//            public void onAnimationEnd(Animation animation) {
//
//                if (image1.getVisibility() == View.VISIBLE) {
//                    image1.setAnimation(null);
//                    showImage2();
//                    image2.startAnimation(sato1);
//                } else {
//                    image2.setAnimation(null);
//                    showImage1();
//                    image1.startAnimation(sato1);
//                }
//            }
//
//            @Override
//            public void onAnimationRepeat(Animation animation) {
//
//            }
//        });
//    }



}
